package com.a01_2021.thousandstimes.general.service;

import com.a01_2021.thousandstimes.exception.CustomException;
import com.a01_2021.thousandstimes.general.entity.School;
import com.baomidou.mybatisplus.extension.service.IService;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author E1xP
 * @since 2021-04-03
 */
public interface ISchoolService extends IService<School> {

    School add(School school) throws CustomException;

    double getAvgScore(String name, LocalDate birthday);

    List<School> get(String name, LocalDate birthday);

}
